﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopPromotion : BaseObject
    {
        //begin
        public TopPromotion(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _PromotionId;
        [Size(SizeAttribute.Unlimited)]
        public string PromotionId
        {
            get
            {
                return _PromotionId;
            }
            set
            {
                SetPropertyValue("PromotionId", ref _PromotionId, value);
            }
        }
        private string _PromotionTitle;
        [Size(SizeAttribute.Unlimited)]
        public string PromotionTitle
        {
            get
            {
                return _PromotionTitle;
            }
            set
            {
                SetPropertyValue("PromotionTitle", ref _PromotionTitle, value);
            }
        }
        private string _PromotionDesc;
        [Size(SizeAttribute.Unlimited)]
        public string PromotionDesc
        {
            get
            {
                return _PromotionDesc;
            }
            set
            {
                SetPropertyValue("PromotionDesc", ref _PromotionDesc, value);
            }
        }
        private long _DecreaseNum;
        public long DecreaseNum
        {
            get
            {
                return _DecreaseNum;
            }
            set
            {
                SetPropertyValue("DecreaseNum", ref _DecreaseNum, value);
            }
        }
        private string _NumIid;
        [Size(SizeAttribute.Unlimited)]
        public string NumIid
        {
            get
            {
                return _NumIid;
            }
            set
            {
                SetPropertyValue("NumIid", ref _NumIid, value);
            }
        }
        private string _DiscountValue;
        [Size(SizeAttribute.Unlimited)]
        public string DiscountValue
        {
            get
            {
                return _DiscountValue;
            }
            set
            {
                SetPropertyValue("DiscountValue", ref _DiscountValue, value);
            }
        }
        private string _DiscountType;
        [Size(SizeAttribute.Unlimited)]
        public string DiscountType
        {
            get
            {
                return _DiscountType;
            }
            set
            {
                SetPropertyValue("DiscountType", ref _DiscountType, value);
            }
        }
        private DateTime _StartDate;
        public DateTime StartDate
        {
            get
            {
                return _StartDate;
            }
            set
            {
                SetPropertyValue("StartDate", ref _StartDate, value);
            }
        }
        private DateTime _EndDate;
        public DateTime EndDate
        {
            get
            {
                return _EndDate;
            }
            set
            {
                SetPropertyValue("EndDate", ref _EndDate, value);
            }
        }
        private string _TagId;
        [Size(SizeAttribute.Unlimited)]
        public string TagId
        {
            get
            {
                return _TagId;
            }
            set
            {
                SetPropertyValue("TagId", ref _TagId, value);
            }
        }
        private string _Status;
        [Size(SizeAttribute.Unlimited)]
        public string Status
        {
            get
            {
                return _Status;
            }
            set
            {
                SetPropertyValue("Status", ref _Status, value);
            }
        }
        //end
    }
}
